//
//  SurpriseColumnsVC.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/11.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class SurpriseColumnsVC: SurpriseShopMenuVC {
    
    var type_list : [SurpTypeListModel]?
    
     var list : [SupriseDataListModel]?
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        
        view.backgroundColor = UIColor.white
        
        
        setupAllChildViewController()

    }
    
    func setupAllChildViewController() {

        
        for item in type_list!{
            
            let tempVC = OneSurpriseColumnVC()
            tempVC.title = item.type_name
            tempVC.typeId = item.type_id
            addChildViewController(tempVC)
            
            
        }

}

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    
      


    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
